package cn.itsource.pethome.system.menu.domain;


import cn.itsource.pethome.base.domain.BaseDomain;
import cn.itsource.pethome.system.dept.domain.Department;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;


/**
 * <p>
 * 
 * </p>
 *
 * @author xlh
 * @since 2023-02-01
 */
@Data
public class Menu extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer abc;
    private Long parentId;
    private String intro;
    private Boolean state;

    private Menu parent;

    //children 不能写错 因为element要使用
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList();
}
